package com.wang.interview.designmode.bridge;

/**
 * @author: wang
 * @date: 2021/8/1 10:54
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        XiaoMi xiaoMi = new XiaoMi();
        Vivo vivo = new Vivo();
        SmallPhone xiaoMiSmallPhone = new SmallPhone(xiaoMi);
        SmallPhone vivoSmallPhone = new SmallPhone(vivo);
        BigPhone xiaoMiBigPhone = new BigPhone(xiaoMi);
        BigPhone vivoBigPhone = new BigPhone(vivo);

        xiaoMiSmallPhone.open();
        xiaoMiSmallPhone.close();
        System.out.println();

        xiaoMiBigPhone.open();
        xiaoMiBigPhone.close();
        System.out.println();

        vivoSmallPhone.open();
        vivoSmallPhone.close();
        System.out.println();

        vivoBigPhone.open();
        vivoBigPhone.close();
    }
}
